package com.xinhua.erp.repo;

import com.xinhua.erp.pojo.Resale;
import com.xinhua.erp.pojo.Supplier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ResaleRepo extends JpaRepository<Resale,Long> , JpaSpecificationExecutor<Resale> {

    Page<Resale> findAllByType(String type, Pageable pageable);
//    @Modifying
//    @Query(value = "update process_compound set state='已审核' where id =?",nativeQuery = true)
//    void updateState(Long id);
}
